#include <iostream>
#include <math.h>

int main()
{
    int X, Y;
    std::cin >> X >> Y;

    int cnt = 1;
    int c_cnt = std::pow(26, Y);
    int curr = c_cnt * 10;
    while (curr < X)
    {
        cnt++;
        curr *= 10;
    }
    std::cout << cnt << std::endl;

    return 0;
}